import threading


def run():
    print('执行run')


if __name__ == '__main__':
    # 等三秒再执行
    thr = threading.Timer(3, run)
    thr.start()
    # thr.join()
    print('主线程代码')
